package com.schoolegard.services;

import com.schoolgard.entitybean.GridDataModel;
import com.schoolgard.entitybean.ParamServer;
import com.schoolgard.entitybean.ParamServerToDevice;

public interface ParamServerService {

	/**
	 * 通过设备ID查找参数记录 由于设备id既是参数表id，所以此方法类似findById
	 * 
	 * @param deviceId
	 * @return
	 */
	public ParamServer findByDeviceId(String deviceId);

	/**
	 * 保存或者更新数据
	 * 
	 * @param paramServer
	 */
	public void saveOrUpdate(ParamServer paramServer);

	public void saveParamAndJob(ParamServer paremServer, ParamServerToDevice job);
	
	public GridDataModel<ParamServerToDevice> findAllJob(
			ParamServerToDevice serverToDevice, int first, int max);
}
